using System;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace Universe.WCF.Behaviors.WcfStreaming
{
    [DataContract]
    public class ResponseStatus
    {
        [DataMember]
        public Guid Token { get; set; }

        [DataMember]
        public ResponseState State { get; set; }
        
        [DataMember]
        public string Hash { get; set; }
        
        [DataMember]
        public ExceptionDetail Exception { get; set; }

        [DataMember]
        public long Length { get; set; }
    }

    public enum ResponseState
    {
        InProgress,
        Success,
        Failed
    }
}